let electron = require('electron');
let app = electron.app;
let BrowserWindow = electron.BrowserWindow;
let mainWindow = null;
app.on('ready', () => {
    mainWindow = new BrowserWindow({width:300, height:200});
    mainWindow.loadFile('main.html');
    mainWindow.on('closed', () => {
        mainWindow = null;
    });
});